home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 17 / CU Amiga Magazine's Super CD-ROM 17 (1997)(EMAP Images)(GB)[!][issue 1997-12].iso / CUCD / Programming / DiceSource / include / sys / dir.h next >
Encoding:
C/C++ Source or Header  |  1994-02-01  |  579 b   |  39 lines

  1.  
  2. /*
  3.  * $VER: sys/dir.h 1.0 (17.4.93)
  4.  *
  5.  * (c)Copyright 1992 Obvious Implementations Corp, All Rights Reserved
  6.  */
  7.  
  8. #ifndef SYS_DIR_H
  9. #define SYS_DIR_H
  10.  
  11. #define MAXPATHLEN  1024
  12. #define MAXNAMLEN   256
  13.  
  14. typedef struct DIR {
  15.     long    am_Private;
  16. } DIR;
  17.  
  18. struct direct {
  19.     char    *d_name;
  20.     short   d_namlen;
  21.     short   d_reserved;
  22.     long    d_ino;
  23. };
  24.  
  25. struct dirent {
  26.     char    *d_name;
  27.     short   d_namlen;
  28.     short   d_reserved;
  29.     long    d_ino;
  30. };
  31.  
  32.  
  33. DIR *opendir(const char *);
  34. struct direct *readdir(DIR *);
  35. int rewinddir(DIR *);
  36. int closedir(DIR *);
  37.  
  38. #endif
  39.